Release 10.1A: OpenEdge Development:
Basic Database Tools


View As

Choose View As from the Field Editor to define the View-As phrase for the type of field widget. When you choose this option, the View-As Phrase dialog box appears, as shown in Figure 9–10.

Figure 9–10: View-As phrase dialog box

The list of available widgets depends on the data type of the field. Table 9–17 lists which widgets you can use for each data type. The numeric data type refers to the decimal, integer, and date data types.

Table 9–17: View As widgets
Widget type
Data type
Character
Numeric
Logical
Combo-box
÷
÷
÷
Editor
÷
Fill-in
÷
÷
÷
Radio-set
÷
÷
÷
Selection-list
÷
Text
÷
÷
÷

When you select a widget type, the appropriate View-As phrase syntax for the field appears. Choose the Copy Syntax button to copy the syntax to and overwrite any existing text in the editor area of the dialog box. After you edit the View-As phrase, press GO to compile the code. If there are errors in your code, the Data Dictionary displays the code and lists the errors. If the code is syntactically correct, the Data Dictionary stores the value and returns you to the Field Editor. When you use this field in an application, it appears as the specified widget type. For more information about defining widgets, see the chapter on widgets and handles in OpenEdge Development: Progress 4GL Handbook .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095